<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/10 0010
 * Time: 16:03
 */

namespace App\Helps;

use Hyperf\Server\ServerManager;

class Server
{
    public static function webSocketServerPort(): \Swoole\Server\Port
    {
        $value = ServerManager::get('ws');
        return $value[1] ?? null;
    }
}
